{% extends '::base.html.twig' %}

{% block body %}
	{{ parent() }}
	<h1>Login</h1>
	
	<form id="login" action="{{ path('login_check') }}" method="post">
	 	{% if error %}
	    	<div style="font-size: 12px; color:red" class="error">{{ error.message }}</div>
		{% endif %}
	    <div>
	    	<label for="username">Username:</label>
	    	<input type="text" id="username" name="_username" value="{{ last_username }}" />
	    </div>
		
		<div>
	    	<label for="password">Password:</label>
	    	<input type="password" id="password" name="_password" />
	    </div>
	
	    {#
	        If you want to control the URL the user is redirected to on success (more details below)
	        <input type="hidden" name="_target_path" value="/account" />
	    #}
	    
	   
	
	    <input type="submit" value="Login" class="grey-button" name="login" />
	</form>
    
   {% endblock %}